<?php
include "conn.php";
$barcode = $_POST['barcode'];
@$tiaojian = $_POST['tiaojian'];
if ($tiaojian > 0){
    $one = $_POST['one'];
    $two = $_POST['two'];
    $main = new main();
    $result = $main->getbookback($barcode,$one,$two,1);
}else{
    $main = new main();
    $result = $main->getbookback($barcode,0,0,$tiaojian);
}

echo json_encode($result);
